import React from 'react';
import CommonList from 'src/components/CommonLists/list';
import { Button } from 'antd';

class FieldList extends CommonList {
  constructor(props) {
    super(props);
    this.api = 'field';
    this.state = {
      applications: [],
      events: [],
    };
    this.operatorWidth = '80px';

    this.btnGroup = [
      (record) => {
        const click = () => {
          props.edit(record, { title: '查看详情' });
        };
        return (
          <Button size='small' type='link' onClick={click}>
            查看详情
          </Button>
        );
      },
    ];
  }
}

export default FieldList;
